﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/List.Master" AutoEventWireup="true" CodeBehind="ZJZFSQQKHZB.aspx.cs" Inherits="Honestysoft.Financing.WebUI.Module.Reports.ZJZFSQQKHZB" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script language="javascript" type="text/javascript" src="../../Scripts/jquery.easyui.min.js"></script>
<link href="../../Styles/easyui.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/javascript" src="../../Scripts/My97DatePicker/WdatePicker.js"></script>
<script language="javascript" type="text/javascript">   
    function query() {
        var batchNo = document.getElementById("<%=txtBatchNo.ClientID %>").value;
        var rptDate = document.getElementById("<%=dtpReportDate.ClientID %>").value;
        if (batchNo == "") {
            return;
        }
        if (rptDate == "") {
            return;
        }
        ifrmInfo.location.href = '<%=System.Configuration.ConfigurationManager.AppSettings["ReportServerURL"] %>/R002&batchNo=' + batchNo + '&rptDate=' + rptDate + '&rc:parameters=false';
    }
    function BatchReportDate() {
        var BatchNo;
        var DateStr;
    }
    var BatchRptDates = new Array();
    function getZFHZDate(value) {
        
        if (value != "") {
            var dStr = "";
            for (var i = 0; i < BatchRptDates.length; i++) {
                if (BatchRptDates[i].BatchNo == value) {
                    dStr = BatchRptDates[i].DateStr;
                    break;
                }
            }
            $("#<%=dtpReportDate.ClientID %>").val(dStr);
        }
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div region="north" split="true" border="false" style="padding:0px;overflow:hidden;height:30px;font-size:12px">
    <asp:panel id="panel" runat="server">
批次：<asp:TextBox runat="server" ID="txtBatchNo" CssClass="input2" Width="78px" onbeforepaste="numboxPaste();" onkeypress="isInt();" onchange="getZFHZDate(this.value);" ></asp:TextBox>&nbsp;&nbsp;
           打印日期：<asp:TextBox ID="dtpReportDate" runat="server" onFocus="WdatePicker({isShowClear:false,readOnly:true})"  Width="120px"></asp:TextBox>&nbsp;&nbsp;
           <asp:Button runat="server" ID="btnQuery" Text="查 询" class="btn_normal" OnClientClick="query();return false;"
                onmouseover="this.className='btn_active'" 
                onmouseout="this.className='btn_normal'" /><span style="color:Red">说明：如果输入的批次已报送，则自动得到报送日期，如需要修改日期，直接选择日期后点击“查询”按钮则可。</span>
  </asp:panel>
    
        </div>
	    <div region="center" border="false">
            <iframe id="ifrmInfo" scrolling="yes" frameborder="0"  src="" style="width:100%;height:480px;"></iframe> 
	    </div>
</asp:Content>
